<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<?php
	
	echo form_fieldset('ADMIN -- Ubah data kontestan ITBSPC 2011',array('class' => 'adminedit'));
		echo '<div id="column1">';
		echo form_open(('admin/jpc_validasi/'.$userdata->jpc_no_tim),array('class' => 'inline'));
		//$req= "<span id='req'> * </span>";
		$req = '';
		echo form_hidden(
			array('jpc_no_tim'=>$userdata->jpc_no_tim));

		echo '<h3>'.sprintf('JPC%03d',$userdata->jpc_no_tim).'</h3>';

		echo form_label('Nama lengkap anda','jpc_nama');
		echo form_error('jpc_nama');
		echo form_input('jpc_nama', $userdata->jpc_nama);
	
		echo form_label('Nomor ponsel anda','jpc_nohp');
		echo form_error('jpc_nohp');
		echo form_input('jpc_nohp', $userdata->jpc_nohp);
		
		echo form_label('Alamat email anda','jpc_email');
		echo form_error('jpc_email');
		echo form_input('jpc_email', $userdata->jpc_email);

		echo form_label('Kelas <span id="reg_rule">terhitung dari 1 Oktober 2011<br/>Masukkan Kelas dan jurusan misal : XII IPA, IX, dan lain-lain.</span>','jpc_kelas');
		echo form_error('jpc_kelas');
		echo form_input('jpc_kelas', $userdata->jpc_kelas);

		
		echo form_label('Nama sekolah','jpc_nama_sek');
		echo form_error('jpc_nama_sek');
		echo form_input('jpc_nama_sek', $userdata->jpc_nama_sek);
		
		echo form_label('Alamat sekolah','jpc_alamat_sek');
		echo form_error('jpc_alamat_sek');
		echo form_textarea('jpc_alamat_sek',$userdata->jpc_alamat_sek);
		
		echo form_label('Nama lengkap pembimbing','jpc_pembimbing');
		echo form_error('jpc_pembimbing');
		echo form_input('jpc_pembimbing', $userdata->jpc_pembimbing);

		echo '</div>';
		echo '<div id="column2">';

		echo form_fieldset('Ukuran Kaos',array('class' => 'passchange'));		
		$options = array(
				  ''	=> '-',
				  'S'  => 'S',
                  'M'    => 'M',
                  'ML'   => 'ML',
                  'L' => 'L',
                  'XL' => 'XL',
                  'XXL' => 'XXL',
                  'XXXL' => 'XXXL',
                );

		echo '<div class="center">';
		echo '<strong>Ukuran kaos : </strong>';
		echo form_dropdown('jpc_kaos', $options, $userdata->jpc_kaos);
	
		echo '</div>';
			
		echo form_fieldset_close(); 

		echo form_fieldset('Syarat-syarat',array('class' => 'passchange'));
		echo form_label('Kartu Pelajar','jpc_link_kpelajar');
		echo 	'<ul><li>'.($userdata->jpc_link_kpelajar==''?'-':anchor_popup(base_url().$userdata->jpc_link_kpelajar,'link')).
				'</li></ul>';
		echo form_label('Bukti bayar','jpc_link_buktibayar');
		echo 	'<ul><li>'.($userdata->jpc_link_buktibayar==''?'-':anchor_popup(base_url().$userdata->jpc_link_buktibayar,'link'))
				.'</li></ul>';
		
		$options = array(
               TRUE  => 'VALID',
               FALSE => 'TIDAK VALID',
        );

		echo 'Status Pendaftaran :<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
		echo form_dropdown('jpc_valid', $options, $userdata->jpc_valid==''?FALSE:$userdata->jpc_valid);
		
		echo form_fieldset_close(); 	
		
		echo form_fieldset('Finalis',array('class' => 'passchange'));
		
		$options = array(
               TRUE  => 'Finalis',
               FALSE => 'Bukan Finalis',
        );

		echo 'Finalis :<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
		echo form_dropdown('jpc_finalis', $options, $userdata->jpc_valid==''?FALSE:$userdata->jpc_finalis);
		
		echo form_fieldset_close(); 
			
	
		
		echo form_fieldset('Reset password (optional)',array('class' => 'passchange'));
		echo '<br/>';
		echo '<div class="center">';
		echo form_checkbox(array(
				'name'        => 'reset',
				'id'          => 'reset',
				'value'       => TRUE,
				'checked'     => FALSE,
				));
		echo ' Lakukan reset password.';
		echo '</div>';
		echo form_fieldset_close(); 
		
		
		echo '<br/>';
		
		echo form_submit(array(
				'name' => 'data_valid',
				//'class' => 'edit'
				)
				, 'Ubah data pendaftaran');
		echo form_close();
	
		echo form_open('admin/manage_jpc',array('class' => 'inline'));
		echo form_submit(array(
				'name' => 'action',
				//'class' => 'button_n'
				)
				, 'Kembali');
		echo form_close();
		
		echo '</div>';
		echo form_fieldset_close(); 




